-
Notifications
You must be signed in to change notification settings - Fork 2.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
v9: Update cypress to newest version and fix errors #11486
Conversation
…/umbraco/Umbraco-CMS into v9/bugfix/fix_flaky_cypress_test
…0' into v9/bugfix/update-cypress-to-8.6.0 # Conflicts: # tests/Umbraco.Tests.AcceptanceTest/cypress/integration/Settings/scripts.ts
@@ -18,7 +18,8 @@ context('Stylesheets', () => { | |||
|
|||
cy.umbracoContextMenuAction("action-create").click(); | |||
cy.get('.menu-label').first().click(); // TODO: Fucked we cant use something like cy.umbracoContextMenuAction("action-mediaType").click(); | |||
|
|||
//We have to wait here till everything is loaded, or worker will throw error | |||
cy.wait(500); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
instead of magic number, is there something to wait on on e.g. cy.get('.ace_text-input') (default timeout 4 seconds)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yea I agree that a magic number is not optimal, will try find something better to wait on 👍 I'll do some detective work 🕵️
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
how about :pcy.get('.ace_text-input')
Or cy.get('input[data-element="editor-name-field"]');
which is probably more relevant for the test.
tests/Umbraco.Tests.AcceptanceTest/cypress/integration/Settings/templates.ts
Outdated
Show resolved
Hide resolved
tests/Umbraco.Tests.AcceptanceTest/cypress/integration/Settings/templates.ts
Outdated
Show resolved
Hide resolved
# Conflicts: # tests/Umbraco.Tests.AcceptanceTest/cypress/integration/Content/content.ts
* fixed flaky macro test and updated cypress version * fixed flaky macro test and updated cypress version * Update package.json * Updated cypress to 8.6 and fixed failing script test * Updated cypress to 8.6 and fixed failing script test * Update package-lock.json * Fixed Scripts and stylesheet tests with proper waits instead of magic numbers * Updated to newest version of cypress and fixed template test * Remove duplicate click * Revert version to 8.4.1 * changed template Co-authored-by: Nikolaj Geisle <[email protected]> (cherry picked from commit e9ae567) # Conflicts: # src/Umbraco.Tests.AcceptanceTest/package.json # tests/Umbraco.Tests.AcceptanceTest/package-lock.json
* fixed flaky macro test and updated cypress version * fixed flaky macro test and updated cypress version * Update package.json * Updated cypress to 8.6 and fixed failing script test * Updated cypress to 8.6 and fixed failing script test * Update package-lock.json * Fixed Scripts and stylesheet tests with proper waits instead of magic numbers * Updated to newest version of cypress and fixed template test * Remove duplicate click * Revert version to 8.4.1 * changed template Co-authored-by: Nikolaj Geisle <[email protected]> (cherry picked from commit e9ae567) # Conflicts: # src/Umbraco.Tests.AcceptanceTest/package.json # tests/Umbraco.Tests.AcceptanceTest/package-lock.json
Notes
How to test
npm install
&npm run test